$(".edit").click(function () {
    var id = $(this).attr('data-id');
    window.location.href = '/admin/email/edit?id=' + id;
});